package com.youxin.busfoundation.enums;

import java.math.BigDecimal;

/**
 * 企业认证类型
 * @author yingde.cao
 *
 */
public enum EnterpriseIdentityType {	
	/**
	 * 普通
	 */
	Normal((short)0,6,600,new BigDecimal("0.2"),new BigDecimal(100),new BigDecimal(1920)),
	/**
	 * VIP
	 */
	Vip((short)1,11,1200,new BigDecimal("0.18"),new BigDecimal(200),new BigDecimal(3360))	
	;
	/**
	 * 会员数量
	 */
	private int memberNumber;
	/**
	 * 线索数量
	 */
	private int leadsNumber;
	/**
	 * 每分钟话费
	 */
	private BigDecimal callsPerMinute;
	
	private BigDecimal coupon;
	
	public BigDecimal getCoupon() {
		return coupon;
	}

	private short value;
	/**
	 * 会员升级年费
	 */
	private BigDecimal memberUpgradeFee;
	
	private EnterpriseIdentityType(short value,int memberNumber,int leadsNumber,BigDecimal callsPerMinute,BigDecimal coupon,BigDecimal memberUpgradeFee) {
		this.value = value;
		this.memberNumber=memberNumber;
		this.leadsNumber=leadsNumber;
		this.callsPerMinute=callsPerMinute;
		this.coupon=coupon;
		this.memberUpgradeFee=memberUpgradeFee;
	}
	
	public short getValue() {
		return value;
	}
	
	public static EnterpriseIdentityType valueOf(short val)
	{			
		for(EnterpriseIdentityType m : EnterpriseIdentityType.values()) 
		{
			if(val==m.getValue())
				return m;
	    }
		return EnterpriseIdentityType.Normal;
	}

	public int getMemberNumber() {
		return memberNumber;
	}

	public int getLeadsNumber() {
		return leadsNumber;
	}

	public BigDecimal getCallsPerMinute() {
		return callsPerMinute;
	}

	public BigDecimal getMemberUpgradeFee() {
		return memberUpgradeFee;
	}

	public void setMemberUpgradeFee(BigDecimal memberUpgradeFee) {
		this.memberUpgradeFee = memberUpgradeFee;
	}
	
	
	
}
